//
//  SelectTextView.h
//  NVAReader
//
//  Created by DuyLK on 6/25/14.
//  Copyright (c) 2014 com.nva.nvareader. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "EvenDelegate.h"
@interface SelectTextView : NSView
{
    NSArray *words;
    CGSize pageSize;
    NSColor *color;
    NSPoint start;
	NSPoint end;
    NSTrackingArea *trackingArea;
    
    NSMutableArray *curves;
}
@property int widthPage;
@property int heightPage;
@property BOOL isDraw;
@property (nonatomic, strong) id<EvenDelegate> delegate;
@property(readonly) NSArray *curves;
@property (copy) NSColor *colorDraw;

- (NSArray *) selectionRects;
- (NSString *) selectedText;
- (id) initWithWords:(NSArray *)_words pageSize:(CGSize)_pageSize witdth:(int)widthPage height:(int)heightPage;
- (void) setPageSize: (CGSize)s witdth:(int)widthPage height:(int)heightPage;
-(void) setIsDrawTool:(BOOL)isDraw;
@end
